package com.tomowork.commons;

/**
 * 对编码进行统一管理，方便进行后续的开发
 */
public enum  ResponseCode {
    SUCCESS(1,"SUCCESS") ,
    ERROR(2,"ERROR") ;

    private int code ;
    private String dec ;

    ResponseCode(int code, String dec) {
        this.code = code;
        this.dec = dec;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDec() {
        return dec;
    }

    public void setDec(String dec) {
        this.dec = dec;
    }
}
